package
{
	import flash.display.Sprite;
	import flash.text.TextField;
	import flash.text.TextFormat;

	public class MenuBar extends Sprite
	{
		//private var _xpos:uint;
		//private var _ypos:uint;
		private var _hsize:uint;
		private var _vsize:uint;
		
		public function MenuBar(xpos:uint, ypos:uint, hsize:uint, vsize:uint) {
			super();
			x = xpos;
			y = ypos;
			_hsize = hsize;
			_vsize = vsize;
			
			/*
			var output:TextField = new TextField();
			output.x = xpos;
			output.y = ypos;
			output.height = vsize;
			output.width = hsize;
			output.wordWrap = true;
			output.multiline = true;
			output.background = true;
			output.border = true;
			var formatter:TextFormat = new TextFormat();
			formatter.font = "Courier";
			output.defaultTextFormat = formatter;
			addChild(output);
			*/
		}
		
		public function addItem(iName:String):void {
			var newItem:TextButton = new TextButton("TEST", 50, 40);
			newItem.x = 1;
			newItem.y = 1;
			this.addChild(newItem);
			
			var newItem2:TextButton = new TextButton("TEST", 50, 40);
			newItem2.x = 100;
			newItem2.y = 1;
			this.addChild(newItem2);
		}
		
		
	}
}